#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author   : Moty
# @Time     : 2024/10/18 22:39
# @File     : kc16_32.py
# @Project  : CSPT
def parse_34_Operational_Platform_Remote_Control_Start_Charging(body):
    # 解析0x25 充电过程 BMS 信息
    data = {
        "交易流水号": f"{body[0:32]}({body[0:32]})",
        "桩编号": f"{body[32:46]}({body[32:46]})",
        "枪号": f"{int(body[46:48], 16)}枪({body[46:48]})",
        "逻辑卡号": f"{body[56:64]}({body[48:64]})",
        "物理卡号": f"{body[72:80]}({body[64:80]})",
        "账户余额": f"{int(body[80:88], 16)/100}({body[80:88]})",
    }
    formatted_data = ""
    for key, value in data.items():
        formatted_data += f"{key}: {value}\n"
    return formatted_data


__all__ = ['parse_34_Operational_Platform_Remote_Control_Start_Charging']